#!/bin/bash
# Linux下优雅的进行大文件切割与合并
# https://cloud.tencent.com/developer/article/1840620

function main() {
# 按字节大小分割
split -d -b 100m users.sql /data/users_
# 合并
cat /data/users_* > users.sql

}

main